package com.yanqu.road.entity.log;


import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_lottery_draw_ex", desc = "通用抽奖活动日志", autoSave = true, dataUpload = true, eventName = "lottery_draw", uploadCk = true)
public class LogActivityLotteryDrawEx extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "抽奖次数", dataAttribute = "lottery_drawnum")
    private int drawCount;
    @FieldTypeAnnotation(desc = "获得奖励", dataAttribute = "lottery_drawget")
    private String reward;
    @FieldTypeAnnotation(desc = "国色无双池子编号", insert = false, dataAttribute = "lottery_drawid")
    private int lotteryType;

    public LogActivityLotteryDrawEx(long userId, int activityId, int drawCount, String reward, int lotteryType) {
        this.userId = userId;
        this.activityId = activityId;
        this.drawCount = drawCount;
        this.reward = reward;
        this.lotteryType = lotteryType;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getDrawCount() {
        return drawCount;
    }

    public void setDrawCount(int drawCount) {
        this.drawCount = drawCount;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public int getLotteryType() {
        return lotteryType;
    }

    public void setLotteryType(int lotteryType) {
        this.lotteryType = lotteryType;
    }
}
